<?
	$frm_att = array('class'=>'admin-form');
 // $this->load->view('layouts/_flash');
 ?>

<div class="row">
		<p class="lead-title">Add School/Academic Year</p>
		<?
			if(isset($system_message))echo $system_message;
			echo validation_errors('<div class="error">', '</div>');
			echo form_open('',$frm_att);
			$sy_from = set_value('sy_from') == FALSE ?  NULL : set_value('sy_from');
			$sy_to = set_value('sy_to') == FALSE ?  NULL : set_value('sy_to');
			$sy_from_att = array('name'=>'sy_from','value'=>$sy_from,'size'=>'4','maxlength'=>'4','required'=>'true','placeholder'=>'Year From ..');
			$sy_to_att = array('name'=>'sy_to','value'=>$sy_to,'size'=>'4','maxlength'=>'4','required'=>'true','placeholder'=>'Year to ..');
			$desc = set_value('desc') == FALSE ?  NULL : set_value('desc');
			$sy_desc = array('name'=>'desc','value'=>$desc,'placeholder'=>'Description');
		?>

	<div class="row collapse">
		<div class="small-3 large-4 columns">
		<span class="prefix"><strong>S.Y FROM:</strong></span>
		</div>
		<div class="small-9 large-8 columns">
		<? echo form_input($sy_from_att);?>
		</div>
	</div>

	<div class="row collapse">
		<div class="small-3 large-4 columns">
		<span class="prefix"><strong>S.Y TO: </strong></span>
		</div>
		<div class="small-9 large-8 columns">
		<? echo form_input($sy_to_att); ?> 
		</div>
	</div>

	<div class="row collapse">
		<div class="small-3 large-4 columns">
		<span class="prefix"><strong>Description: </strong></span>
		</div>
		<div class="small-9 large-8 columns">
		<? echo form_input($sy_desc); ?> 
		</div>
	</div>
	
	<div class="row">
		<div class="small-9 columns">
			<?
				echo form_submit('add_school_year','Add School Year','class="btn btn-small btn-primary"');
				echo form_close();
			?>
		</div>
	</div>


</div>
